<?php
/**
 * Created by PhpStorm.
 * User: moon
 * Date: 2021/6/5
 * Time: 21:27
 */

namespace app\admin\model;


use app\BaseModel;

class Admin extends BaseModel
{
    protected $table = 'sh_admin';

    protected $updateTime  = 'update_time';
    public function getAdminInfo($username)
    {
        return $this->where(['account' => $username, 'deleted' => 0, 'status' => 1])->find()->toArray();
    }
}